//////////////////////////////////////////////////////////////////////////////////////////////
//	File			:	"UnitTurnEndMessage.cpp"
//
//	Author			:	Mike Davis, Matt Stover, James Thornton, Keith Webster
//	
//	Project			:	TacWars
//
//	Last Modified	:	11/6/2013
//
//	Purpose			:	
//
//////////////////////////////////////////////////////////////////////////////////////////////
#include <cassert>
#include "UnitTurnEndMessage.h"
#include "../GameObjects/Entity.h"

UnitTurnEndMessage::UnitTurnEndMessage(Entity* unit) : CMessage(MSG_UNIT_FINISHED)
{
	assert( unit != nullptr && "UnitTurnEndMessage - cannot remove null");

	entity = unit;
	entity->AddRef();
}
UnitTurnEndMessage::~UnitTurnEndMessage()
{
	entity->Release();
	entity = nullptr;
}